using System;
using System.Collections.Generic;
using System.Reflection;

namespace System.Web.Core
{
    public class UserRequest : TEntityRequest<User>
    {
        #region Private Members

        private Guid memberId = Guid.Empty;

        #endregion

        #region Constructors

        public UserRequest()
        {
            Entity = Activator.CreateInstance(Configuration.Instance.UserType) as Entity;
            EntityId = GetParameterValue<int>(ParameterName.UserId);
            MemberId = GetParameterValue<Guid>(ParameterName.MemberId);
        }

        #endregion

        #region Public Properties

        public Guid MemberId
        {
            get
            {
                return memberId;
            }
            set
            {
                memberId = value;
            }
        }

        #endregion
    }
    public class UserListRequest : TEntityListRequest<User>
    {
        private int? roleId = GetParameterValue<int?>(ParameterName.RoleId);

        public int? RoleId
        {
            get
            {
                return roleId;
            }
            set
            {
                roleId = value;
            }
        }
    }
    public class UserReply : EntityReply
    {
    }
}
